﻿namespace TaskManager.Web.Controls
{
    /// <summary>
    /// Represents tab
    /// </summary>
    public class Tab
    {
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="text">Name</param>
        /// <param name="url">Url that is used when user clicks on a tab</param>
        /// <param name="tabId">Tab unique identifier</param>
        /// <param name="contentId">Tab content unique identifier (usually URL)</param>
        /// <param name="closable">Closable flag</param>
        public Tab(string text, string url, int tabId, string contentId, bool closable)
        {
            ContentId = contentId;
            Text = text;
            Closable = closable;
            Url = url;
            TabId = tabId;
        }

        public string Text { get; set; }
        public string Url { get; set; }
        public int TabId { get; set; }
        public string ContentId { get; private set; }
        public bool Closable { get; set; }

    }
}